<?php

require_once 'inc/config.php';
session_start();
$url = !empty($_GET['url']) && $_GET['hash'] == md5($_GET['url'] . session_id() . FB_SECRET) ? $_GET['url'] : WEB_URL;

?>
<!DOCTYPE html>
<html>
	<head><title>Loading...</title></head>
	<link rel="stylesheet" href="inc/style.css">
	<body>
		<p>Please wait while the page is loading...<?php if (!empty($_GET['reason'])) echo " ($_GET[reason])"; ?></p>
		<script>
			<?php if (!empty($_GET['top'])) echo 'top.'; ?>location = '<?php echo $url; ?>';
		</script>
	</body>
</html>